package com.dushan.boot.service;

/**
 * @Author：朗朗乾坤
 * @Package：com.dushan.boot.service
 * @Project：DuShanHui
 * @name：SingletonDouble
 * @Date：2024/3/11 22:12
 * @Filename：SingletonDouble
 */
public class SingletonDouble {
    private static volatile SingletonDouble singletonDouble;

    private SingletonDouble() {
    }

    public static SingletonDouble getSingletonDouble() {
        if (singletonDouble == null) {
            synchronized (SingletonDouble.class) {
                if (singletonDouble == null) {
                    singletonDouble = new SingletonDouble();
                }
            }
        }
        return singletonDouble;
    }
}
